[Unit]

Description=RocketMQ Namesrv
Wants=network-online.target
After=network-online.target


[Service]
Type=simple
WorkingDirectory={{ rocketmq.install_dir }}rocketmq
User=root
Group=root
ExecStart=/bin/bash {{ rocketmq.install_dir }}rocketmq/bin/mqnamesrv.sh start
ExecStop=/bin/bash {{ rocketmq.install_dir }}rocketmq/bin/mqnamesrv.sh stop
ExecReload=/bin/bash {{ rocketmq.install_dir }}rocketmq/bin/mqnamesrv.sh restart
Restart=always

[Install]
WantedBy=multi-user.target
